//
//  JWCalendarSettingHelper.h
//  SiqiCalendar
//
//  Created by sunjiawen on 2018/4/10.
//  Copyright © 2018年 sjw. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <Realm/RLMProperty.h>

@class JWCalendarModel;

@interface JWCalendarSettingHelper : NSObject
@property(nonatomic, strong) JWCalendarModel *pendingCalendarModel;
@property(nonatomic, assign, getter=isEdit) BOOL edit;

+ (instancetype)sharedInstance;

- (void)setupCalendarModel:(JWCalendarModel *)calendar;

- (void)setupInitialCalendarModel;

- (void)updateCalendarName:(NSString *)calendarName;

- (void)updateCalendarSchedule:(id)schedules;

- (void)updateCalendarOrderIndex:(NSNumber *)orderIndex isDefault:(NSNumber *)isDefault firstDate:(NSDate *)firstDate;

/**
 更新数据库中的内容
 */
- (void)updateRealmData;

- (void)confirmEdit;
@end
